package com.example.demo.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.demo.R;
import com.example.demo.utils.LogUtils;

public class CompActivity extends AppCompatActivity {

    private TextView tvText;
    private EditText etDate,etNumber,etTime;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_comp);

        View tvText = findViewById(R.id.textView);
        View etDate = findViewById(R.id.editTextDate);
        View etNumber = findViewById(R.id.editTextNumber);
        View etTime = findViewById(R.id.editTextTime);

        String date = etDate.getContext().toString();
        String number = etNumber.getContext().toString();
        String time = etTime.getContext().toString();


        LogUtils.e("测试页面",date+number+time);

    }
}
